package com.lordjoe.collectiveintelligence.data;

/**
 * com.lordjoe.collectiveintelligence.data.Measurement
 *
 * @author Steve Lewis
 * @date May 12, 2009
 */
public class Measurement<T> implements IMeasurement<T>
{
    public static Measurement[] EMPTY_ARRAY = {};
    public static Class THIS_CLASS = Measurement.class;

    private final IMeasurementType m_Type;
    private final T m_Value;
    private final IDataItem m_Item;

    public Measurement(IMeasurementType pType, T pValue,IDataItem item)
    {
        m_Type = pType;
        m_Value = pValue;
        m_Item = item;
    }

    public IMeasurementType getType()
    {
        return m_Type;
    }

    public T getValue()
    {
        return m_Value;
    }

    public IDataItem getItem()
    {
        return m_Item;
    }
}
